package com.derbysoft.dswitch.adapter.ihg.common.core.reflect;

import javax.persistence.Entity;

public class JpaEntityClassFilter implements ClassFilter {

    @Override
    public boolean match(Class<?> clazz) {
        if (clazz == null) {
            throw new IllegalArgumentException("can not set null Class");
        }
        Entity entity = clazz.getAnnotation(Entity.class);
        return entity != null;
    }
}
